import Vue from 'vue'
import Router from 'vue-router'
import square from '@/components/square'
import circle from '@/components/circle'
import Coupon from '@/components/Coupon'
import active from '@/components/active'
import my from '@/components/my'
import Create_coupons  from '@/components/Create_coupons'
import edit from  "@/components/edit"
import photo from  "@/components/photo"
import begin from  "@/components/begin"
import fully from  "@/components/fully"
import signup from  "@/components/signup"
import Verification from  "@/components/Verification"
import cope from  "@/components/cope"
import market_detail from  "@/components/market_detail"
import addactive from  "@/components/addactive"
import shoplist from  "@/components/shoplist"
import quan_detail from  "@/components/quan_detail"
import wx_pay from  "@/components/wx_pay"
import login from  "@/login/login"
import code from  "@/login/code"
import register from  "@/login/register"
import setpassword from  "@/login/setpassword"
import complete from  "@/login/complete"
import perfect from  "@/login/perfect"
import registration from  "@/components/registration"
import wx_p_r from  "@/components/wx_p_r"
import quan_share from  "@/components/quan_share"
import select_model from  "@/components/select_model"
import my_vip from  "@/components/my_vip"
import my_shop from  "@/components/my_shop"
import my_code from  "@/components/my_code"
import my_evaluate from  "@/components/my_evaluate"
import set_password from  "@/components/set_password"
import new_password from  "@/components/new_password"
import share_ma from  "@/components/share_ma"
import add_quan_detail from  "@/components/add_quan_detail"
import zuhe_share_ma from  "@/components/zuhe_share_ma"
  illustration
import illustration from  "@/components/illustration" 
 import examine from  "@/components/examine"
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login,
     meta: {
        footShow: false, // true显示，false隐藏
        title: '登录'
      }
    },
    {
      path: '/register',
      name: 'register',
      component: register,
     meta: {
      	requireAuth: false,
        footShow: false, // true显示，false隐藏
        title: '注册'
      }
    },
    {
      path: '/code',
      name: 'code',
      component: code,
     meta: {
      	requireAuth: false,
        footShow: false, // true显示，false隐藏
        title: '输入验证码'
      }
    },
    {
      path: '/setpassword',
      name: 'setpassword',
      component: setpassword,
     meta: {
      	requireAuth: false,
        footShow: false, // true显示，false隐藏
        title: '设置密码'
      }
    },
     {
      path: '/complete',
      name: 'complete',
      component: complete,
     meta: {
      	requireAuth: false,
        footShow: false, // true显示，false隐藏
        title: '注册完成'
      }
    },
    {
      path: '/perfect',
      name: 'perfect',
      component: perfect,
     meta: {
      	requireAuth: false,
        footShow: false, // true显示，false隐藏
        title: '填写商户信息'
      }
    },
     {
      path: '/square',
      name: 'square',
      component: square,
     meta: {
      	requireAuth: true,
        footShow: true, // true显示，false隐藏
        title: '领券广场'
      }
    },
    {
      path: '/circle',
      name: 'circle',
      component: circle,
       meta: {
      	requireAuth: true,
        footShow: true, // true显示，false隐藏
        title: '浪客圈'
      }
     
    },
    {
      path: '/Coupon',
      name: 'Coupon',
      component: Coupon,
       meta: {
      	requireAuth: true,
        footShow: true, // true显示，false隐藏
        title: '发起拼券'
      }
      
    },
    {
      path: '/my',
      name: 'my',
      component: my,
       meta: {
      	requireAuth: true,
        footShow: true, // true显示，false隐藏
        title: '我的'
      }
     
    },
    {
      path: '/active',
      name: 'active',
      component: active,
      meta: {
      	requireAuth: true,
        footShow: true, // true显示，false隐藏
        title: '营销活动'
      }
     
      
    },
    {
      path: '/Create_coupons',
      name: 'Create_coupons',
      component:Create_coupons,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '创建优惠券'
      }
     
      
    },
     {
      path: '/edit',
      name: 'edit',
      component:edit,
      meta: {
      	requireAuth: false,
        footShow: false, // true显示，false隐藏
        title: '编辑信息'
      }
     
      
    },
    {
      path: '/photo',
      name: 'photo',
      component:photo,
      meta: {
      	requireAuth: false,
        footShow: false, // true显示，false隐藏
        title: '上传相册'
      }  
    },
    {
      path: '/begin',
      name: 'begin',
      component:begin,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '发起拼单'
      }  
    },
    {
      path: '/fully/:id',
      name: 'fully',
      component:fully,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '补全信息'
      }  
    },
    {
      path: '/signup',
      name: 'signup',
      component:signup,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '我要报名'
      }  
    },
    {
      path: '/Verification',
      name: 'Verification',
      component:Verification,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '核验'
      }  
    },
    {
      path: '/cope',
      name: 'cope',
      component:cope,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '核验'
      }  
    },
     {
      path: '/market_detail',
      name: 'market_detail',
      component:market_detail,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '营销详细'
      }  
    },
    {
      path: '/addactive',
      name: 'addactive',
      component:addactive,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '参加营销活动'
      }  
    },
    {
      path: '/shoplist',
      name: 'shoplist',
      component:shoplist,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '查看参与店铺'
      }  
    },
     {
      path: '/quan_detail',
      name: 'quan_detail',
      component:quan_detail,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '优惠券详情'
      }  
    },
    {
      path: '/wx_pay',
      name: 'wx_pay',
      component:wx_pay,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '微端营销'
      }  
    },
    {
      path: '/wx_p_r',
      name: 'wx_p_r',
      component:wx_p_r,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '微端营销'
      }  
    },
    {
      path: '/registration',
      name: 'registration',
      component:registration,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '审核报名'
      }  
    },
    {
      path: '/quan_share',
      name: 'quan_share',
      component:quan_share,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '营销活动微端营销'
      }  
    }, {
      path: '/select_model',
      name: 'select_model',
      component:select_model,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '选择优惠模板'
      }  
    },
     {
      path: '/my_vip',
      name: 'my_vip',
      component:my_vip,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '我的会员'
      }  
    },{
      path: '/my_shop',
      name: 'my_shop',
      component:my_shop,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '我的商家'
      }  
    },
    {
      path: '/my_code',
      name: 'my_code',
      component:my_code,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '我的邀请码'
      }  
    },
    {
      path: '/my_evaluate',
      name: ' my_evaluate',
      component: my_evaluate,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '我的评价'
      }  
    },
    {
      path: '/set_password',
      name: 'set_password',
      component: set_password,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '修改密码'
      }  
    },
     {
      path: '/new_password',
      name: 'new_password',
      component: new_password,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '新密码'
      }  
    },
    {
      path: '/share_ma',
      name: 'share_ma',
      component: share_ma,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '二维码海报'
      }  
    },
     {
      path: '/add_quan_detail',
      name: 'add_quan_detail',
      component: add_quan_detail,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '自己参与活动列表详情'
      }  
    },
    {
      path: '/zuhe_share_ma',
      name: 'zuhe_share_ma',
      component: zuhe_share_ma,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '组合券分享二维码'
      }  
    },
    {
      path: '/examine',
      name: 'examine',
      component: examine,
      meta: {
      	requireAuth: true,
        footShow: false, // true显示，false隐藏
        title: '审核页面'
      }  
    },
    {
      path: '/illustration',
      name: 'illustration',
      component: illustration,
      meta: {
      	requireAuth: false,
        footShow: false, // true显示，false隐藏
        title: '协议说明'
      }  
    },
    
    
    
    
    
   
    
  ]
})
